package exam;

import java.awt.*;

import javax.swing.*;

public class mainGUI {
      public JFrame mainFrame;
      public JPanel mainPane;
      public JPanel subPane;
      SerialDemo serial;
      TCPServer tcp_suv;
      TCPClient tcp_cli;
      UDPTester udp;

      public mainGUI() {
         ChatGUI cg = new ChatGUI();
         ListGUI lg = new ListGUI();
         ConfigGUI fg = new ConfigGUI();
         tcp_suv = new TCPServer();
         tcp_cli = new TCPClient();
         udp = new UDPTester();
         
         subPane = new JPanel(new BorderLayout(10,20));
         mainPane = new JPanel(new BorderLayout(10,20));
         mainPane.add(cg.panel,"Center");
         subPane.add(lg.panel,"Center");
         subPane.add(fg.tabPane,"South");
         
         mainPane.add(subPane,"East");
         
         mainFrame = new JFrame("GW Communication Tester");
         mainFrame.add(mainPane);
         mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         mainFrame.setLocation(250, 25);
         mainFrame.setSize(870, 705);
         mainFrame.setVisible(true);
         ImageIcon icon = new ImageIcon("C:/Users/Administrator/Desktop/project/exam/src/exam/gridwiz.jpg");
         mainFrame.setIconImage(icon.getImage());
         
         
      }

   public static void main(String[] args){
      new mainGUI();
   }
}